﻿using Microsoft.Extensions.Configuration;
using PetaPoco;
using SqlSugar;
using System.Configuration;
using System.IO;

namespace BlazorAdmin.Services.DbService
{
    public abstract class BaBizDbService
    {
        private readonly ISqlSugar dbManager;

        public BaBizDbService(ISqlSugar db)
        {
            dbManager = db;
        }

        protected SqlSugarClient Create() => dbManager.Create();

        protected SqlSugarClient Create(string connName) => dbManager.Create(connName);
    }
}
